import request from "@/utils/request"
import {qsStringify} from "@/utils/common"

// 查询当前配置的Api
export const readSwitchApi = (data: {devGId: string | number | null | undefined}) => {
	let dataQ = "?" + qsStringify(data)
	return request.post("/exc/readSwitch" + dataQ)
}

// 修改配置的Api
export const sendSwitchApi = (data: {devGId: string | number | null | undefined; data: string}) => {
	let dataQ = "?" + qsStringify(data)
	return request.post("/exc/sendSwitch" + dataQ)
}
